exports.editDocsCategory = function (req, res) {

    var id = req.query.id;

    //查询分类列表
    sqliteDb.all("select * from docs_category where dc_id = " + id,function(err,data){

        if(err){
            return RES.errorResponse(res,"抱歉，文档分类获取失败");
        }

        console.log(data);
            
        Render.viewRender(req,res,'editDocsCategory',{title:"分类编辑页",categoryData:data[0]})
       
    });

}